<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>输入输出语句 演示文档</title>
    <!--在h5中 type属性可以不写 默认是"text/css"   -->
    <link rel="stylesheet" href="./css/common.css" />
    <style>
      .green {
        display: inline-block;
        text-decoration: none;
        position: relative;
        color: chartreuse;
        left: 45%;
        top: 300px;
        font-size: 25px;
        border-radius: 5%;
        transition: all 1s;
      }
     .green:hover {
        box-shadow: 0px 0px 13px 6px #6be57a;
        transform: scale(2, 2);
      }
    </style>
    <!-- 在h5中 type属性可以不写 默认是"text/javascript" -->
    <script>
      // 1.prompt 输入
      // var myname = prompt("请输入您的姓名");
      var myName = "小猪佩奇";
      console.log("外双内'单引号'嵌套使用"); //外双内'单引号'嵌套使用
      console.log('外单内"双引号"嵌套使用');//外单内"双引号"嵌套使用

      var intstr = '36.9';
     var result =  parseFloat(intstr);
      console.log(result)
    </script>
  </head>
  <body>
    <div class="container green">
      <div id="myname" onclick="myclick(myName)"></div>
      <div id="mysex" "></div>
    </div>
    <script>
      document.getElementById("myname").innerText = myName;

      function myclick(msg) {
        alert("您的名字是:" + msg);
        console.log("用户输入的信息是:" + msg);
      }
    </script>

  </body>
</html>
